mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Relax comparison with pconfig system.accept_only_sharer value
- DI::pConfig()->get returns a string value, not an integer - Removed superfluous default values now that we aren't doing strict type checking
This commit is contained in:
parent
785ea0325e
commit
c376081d0d
3 changed files with 5 additions and 5 deletions
|
@ -1408,7 +1408,7 @@ class Item
|
|||
$is_reshare = ($item['gravity'] == GRAVITY_ACTIVITY) && ($item['verb'] == Activity::ANNOUNCE);
|
||||
|
||||
if ((($item['gravity'] == GRAVITY_PARENT) || $is_reshare) &&
|
||||
DI::pConfig()->get($uid, 'system', 'accept_only_sharer') === self::COMPLETION_NONE &&
|
||||
DI::pConfig()->get($uid, 'system', 'accept_only_sharer') == self::COMPLETION_NONE &&
|
||||
!Contact::isSharingByURL($item['author-link'], $uid) &&
|
||||
!Contact::isSharingByURL($item['owner-link'], $uid)) {
|
||||
Logger::info('Contact is not a follower, thread will not be stored', ['author' => $item['author-link'], 'uid' => $uid]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue