aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Subthread.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-01 15:47:40 +0000
committerMario <mario@mariovavti.com>2024-03-01 15:47:40 +0000
commitaf839a05892f9446e86327ba04787b3a697c379c (patch)
treed43beb840eddba59312784ab261cc5a6843e8e05 /Zotlabs/Module/Subthread.php
parent4bbeb224f67848cbdd4b07ed4f90341e0a6460c9 (diff)
downloadvolse-hubzilla-af839a05892f9446e86327ba04787b3a697c379c.tar.gz
volse-hubzilla-af839a05892f9446e86327ba04787b3a697c379c.tar.bz2
volse-hubzilla-af839a05892f9446e86327ba04787b3a697c379c.zip
AS2 Follow/Ignore
Diffstat (limited to 'Zotlabs/Module/Subthread.php')
-rw-r--r--Zotlabs/Module/Subthread.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Subthread.php b/Zotlabs/Module/Subthread.php
index 5ddcaffc6..b927ee480 100644
--- a/Zotlabs/Module/Subthread.php
+++ b/Zotlabs/Module/Subthread.php
@@ -24,9 +24,9 @@ class Subthread extends \Zotlabs\Web\Controller {
$item_id = ((argc() > 2) ? notags(trim(argv(2))) : 0);
if(argv(1) === 'sub')
- $activity = ACTIVITY_FOLLOW;
+ $activity = 'Follow';
elseif(argv(1) === 'unsub')
- $activity = ACTIVITY_UNFOLLOW;
+ $activity = 'Ignore';
$i = q("select * from item where id = %d and uid = %d",
@@ -121,9 +121,9 @@ class Subthread extends \Zotlabs\Web\Controller {
if(! intval($item['item_thread_top']))
$post_type = 'comment';
- if($activity === ACTIVITY_FOLLOW)
+ if($activity === 'Follow')
$bodyverb = t('%1$s is following %2$s\'s %3$s');
- if($activity === ACTIVITY_UNFOLLOW)
+ if($activity === 'Ignore')
$bodyverb = t('%1$s stopped following %2$s\'s %3$s');
$arr = array();