From: Mikael Nordfeldth Date: Fri, 1 Apr 2016 21:21:57 +0000 (+0200) Subject: Send thr:in-reply-to as well, for clarity... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b1de90fe0866fa30e72df6b2df6a937c39bebe28;p=quix0rs-gnu-social.git Send thr:in-reply-to as well, for clarity... --- diff --git a/plugins/Favorite/classes/Fave.php b/plugins/Favorite/classes/Fave.php index 7dad591181..c9bb7a6dd2 100644 --- a/plugins/Favorite/classes/Fave.php +++ b/plugins/Favorite/classes/Fave.php @@ -193,6 +193,13 @@ class Fave extends Managed_DataObject $act->content = sprintf(_('%1$s favorited something by %2$s: %3$s'), $actor->getNickname(), $target->getProfile()->getNickname(), $target->getRendered()); + $act->context = new ActivityContext(); + $act->context->replyToID = $target->getUri(); + try { + $act->context->replyToURL = $target->getUrl(); + } catch (InvalidUrlException $e) { + // ok, no replyToURL, i.e. the href="" in + } $act->actor = $actor->asActivityObject(); $act->target = $target->asActivityObject();