salmonaction.php

Summary
salmonaction.php
SalmonActionSuperclass handler for receiving salmon messages
SalmonActionSuperclass for handling incoming salmon messages
preparePerforms a variety of pre-processing integrity checks
handleCheck the posted activity type and break out to appropriate processing.
isInstanceBlockedReturns true if the sending instance is blocked by this one
handlePostPlaceholder handler for a handler to inherit post handling
handleFollowPlaceholder handler for a handler to inherit follow handling
handleUnfollowPlaceholder handler for a handler to inherit unfollow handling
handleSharePlaceholder handler for a handler to inherit repost handling
handleJoinPlaceholder handler for a handler to inherit group joining handling
handleLeavePlaceholder handler for a handler to inherit group leaving handling
handleTagPlaceholder handler for a handler to inherit hashtagging handling
handleUntagPlaceholder handler for a handler to inherit un-hashtagging handling
handleUpdateProfileRemote user sent us an update to their profile.
ensureProfilesMake sure we have a profile for the originating actor
saveNoticeSaves a notice received by aslmon

SalmonAction

Superclass handler for receiving salmon messages

postActiv

the micro-blogging software

Copyright

Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses/.

https://www.gnu.org/licenses/agpl.html

About

Superclass handler for receiving salmon messages

PHP version

Tested with PHP 7

File Authors

Web

SalmonAction

Superclass for handling incoming salmon messages

Summary
preparePerforms a variety of pre-processing integrity checks
handleCheck the posted activity type and break out to appropriate processing.
isInstanceBlockedReturns true if the sending instance is blocked by this one
handlePostPlaceholder handler for a handler to inherit post handling
handleFollowPlaceholder handler for a handler to inherit follow handling
handleUnfollowPlaceholder handler for a handler to inherit unfollow handling
handleSharePlaceholder handler for a handler to inherit repost handling
handleJoinPlaceholder handler for a handler to inherit group joining handling
handleLeavePlaceholder handler for a handler to inherit group leaving handling
handleTagPlaceholder handler for a handler to inherit hashtagging handling
handleUntagPlaceholder handler for a handler to inherit un-hashtagging handling
handleUpdateProfileRemote user sent us an update to their profile.
ensureProfilesMake sure we have a profile for the originating actor
saveNoticeSaves a notice received by aslmon

prepare

protected function prepare(array $args = array())

Performs a variety of pre-processing integrity checks

handle

protected function handle()

Check the posted activity type and break out to appropriate processing.

isInstanceBlocked

protected function isInstanceBlocked()

Returns true if the sending instance is blocked by this one

handlePost

function handlePost()

Placeholder handler for a handler to inherit post handling

handleFollow

function handleFollow()

Placeholder handler for a handler to inherit follow handling

handleUnfollow

function handleUnfollow()

Placeholder handler for a handler to inherit unfollow handling

handleShare

function handleShare()

Placeholder handler for a handler to inherit repost handling

handleJoin

function handleJoin()

Placeholder handler for a handler to inherit group joining handling

handleLeave

function handleLeave()

Placeholder handler for a handler to inherit group leaving handling

handleTag

function handleTag()

Placeholder handler for a handler to inherit hashtagging handling

handleUntag

function handleUntag()

Placeholder handler for a handler to inherit un-hashtagging handling

handleUpdateProfile

function handleUpdateProfile()

Remote user sent us an update to their profile.  If we already know them, accept the updates.

ensureProfiles

function ensureProfiles()

Make sure we have a profile for the originating actor

saveNotice

function saveNotice()

Saves a notice received by aslmon

protected function prepare(array $args = array())
Performs a variety of pre-processing integrity checks
protected function handle()
Check the posted activity type and break out to appropriate processing.
protected function isInstanceBlocked()
Returns true if the sending instance is blocked by this one
function handlePost()
Placeholder handler for a handler to inherit post handling
function handleFollow()
Placeholder handler for a handler to inherit follow handling
function handleUnfollow()
Placeholder handler for a handler to inherit unfollow handling
function handleShare()
Placeholder handler for a handler to inherit repost handling
function handleJoin()
Placeholder handler for a handler to inherit group joining handling
function handleLeave()
Placeholder handler for a handler to inherit group leaving handling
function handleTag()
Placeholder handler for a handler to inherit hashtagging handling
function handleUntag()
Placeholder handler for a handler to inherit un-hashtagging handling
function handleUpdateProfile()
Remote user sent us an update to their profile.
function ensureProfiles()
Make sure we have a profile for the originating actor
function saveNotice()
Saves a notice received by aslmon