We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e6f07d85 authored by mattl's avatar mattl

Use in_array instead. Now we get third party responses to contextually interesting threads

I think this solves much of the "third party conversation" issues, assuming involved parties
are using modern GNU social instances.
parent 31c9b2c1
......@@ -42,7 +42,7 @@ class UsersalmonAction extends SalmonAction
if (!empty($this->activity->context->replyToID)) {
try {
$notice = Notice::getKV('uri', $this->activity->context->replyToID);
$notice = Notice::getByUri($this->activity->context->replyToID);
} catch (NoResultException $e) {
$notice = false;
......@@ -50,7 +50,7 @@ class UsersalmonAction extends SalmonAction
if ($notice instanceof Notice &&
|| array_key_exists($this->target->getID(), $notice->getAttentionProfileIDs())
|| in_array($this->target->getID(), $notice->getAttentionProfileIDs())
)) {
// In reply to a notice either from or mentioning this user.
common_debug('User is the owner or was in the attention list of thr:in-reply-to activity.');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment