From 70b8c57d220aaaa361967343e2ca7dfa62632569 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 13 Jul 2023 09:47:50 +0000 Subject: basic per item rtl language support - issue ##1780 --- Zotlabs/Lib/ThreadItem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/ThreadItem.php') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 14c9500ff..7fa621470 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -506,7 +506,8 @@ class ThreadItem { 'contact_id' => (($contact) ? $contact['abook_id'] : ''), 'moderate' => ($item['item_blocked'] == ITEM_MODERATED), 'moderate_approve' => t('Approve'), - 'moderate_delete' => t('Delete') + 'moderate_delete' => t('Delete'), + 'rtl' => in_array($item['lang'], rtl_languages()) ); -- cgit v1.2.3 From 5181e575b4eb91de3ec71a125d45c29e65372c76 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Jul 2023 11:46:40 +0000 Subject: fix accesslist in two cases --- Zotlabs/Lib/ThreadItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib/ThreadItem.php') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 7fa621470..7d2bcde56 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -101,7 +101,7 @@ class ThreadItem { $conv = $this->get_conversation(); $observer = $conv->get_observer(); - $acl = new AccessList(false); + $acl = new AccessList([]); $acl->set($item); $lock = ((intval($item['item_private']) || ($item['uid'] == local_channel() && $acl->is_private())) -- cgit v1.2.3 From bb38a90ddaa6f57397d62fd0414b4b9d6968f719 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 17 Sep 2023 13:35:55 +0000 Subject: use small profile images instead of medium --- Zotlabs/Lib/ThreadItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib/ThreadItem.php') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 7d2bcde56..037ddb19e 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -185,7 +185,7 @@ class ThreadItem { $filer = ((($conv->get_profile_owner() == local_channel()) && (! array_key_exists('real_uid',$item))) ? t("Save to Folder") : false); - $profile_avatar = $item['author']['xchan_photo_m']; + $profile_avatar = $item['author']['xchan_photo_s']; $profile_link = chanlink_hash($item['author_xchan']); $profile_name = $item['author']['xchan_name']; @@ -874,7 +874,7 @@ class ThreadItem { if($this->is_toplevel() && ($this->get_data_value('author_xchan') != $this->get_data_value('owner_xchan'))) { $this->owner_url = chanlink_hash($this->data['owner']['xchan_hash']); - $this->owner_photo = $this->data['owner']['xchan_photo_m']; + $this->owner_photo = $this->data['owner']['xchan_photo_s']; $this->owner_name = $this->data['owner']['xchan_name']; $this->wall_to_wall = true; } -- cgit v1.2.3