forked from GNUsocial/gnu-social
[ActivityPub] Fix some small known problems
ActivityPubPlugin: - Rework onProfileDeleteRelated to account for the tables _rsa and _pending_follow_requests - Update onEndShowAccountProfileBlock to stop creating the ap_profile if it doesn't exist (we'll handle this in a different manner) Activitypub_profile: - Remove unnecessary code from from_profile method and add return type information Explorer: - Update travel_collection to call itself instead of _lookup, that was wrong
This commit is contained in:
@@ -201,7 +201,7 @@ class Activitypub_profile extends Managed_DataObject
|
||||
* @throws Exception if no Activitypub_profile exists for given Profile
|
||||
* @author Diogo Cordeiro <diogo@fc.up.pt>
|
||||
*/
|
||||
public static function from_profile(Profile $profile)
|
||||
public static function from_profile(Profile $profile): Activitypub_profile
|
||||
{
|
||||
$profile_id = $profile->getID();
|
||||
|
||||
@@ -216,8 +216,9 @@ class Activitypub_profile extends Managed_DataObject
|
||||
}
|
||||
}
|
||||
|
||||
// extend the ap_profile with some information we
|
||||
// don't store in the database
|
||||
$fields = [
|
||||
'uri' => 'profileurl',
|
||||
'nickname' => 'nickname',
|
||||
'fullname' => 'fullname',
|
||||
'bio' => 'bio'
|
||||
|
Reference in New Issue
Block a user