mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Add more post reasons
This commit is contained in:
parent
0971bcf165
commit
699152e15e
4 changed files with 15 additions and 5 deletions
|
@ -79,6 +79,8 @@ class Item
|
|||
const PR_DIRECT = 77;
|
||||
const PR_ACTIVITY = 78;
|
||||
const PR_DISTRIBUTE = 79;
|
||||
const PR_PUSHED = 80;
|
||||
const PR_LOCAL = 81;
|
||||
|
||||
// system.accept_only_sharer setting values
|
||||
const COMPLETION_NONE = 1;
|
||||
|
@ -908,6 +910,10 @@ class Item
|
|||
$item['post-reason'] = self::PR_FOLLOWER;
|
||||
}
|
||||
|
||||
if ($item['origin'] && empty($item['post-reason'])) {
|
||||
$item['post-reason'] = self::PR_LOCAL;
|
||||
}
|
||||
|
||||
// Ensure that there is an avatar cache
|
||||
Contact::checkAvatarCache($item['author-id']);
|
||||
Contact::checkAvatarCache($item['owner-id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue