From 1fc2f81dab16385ddb00e88b49959a1044a39ba2 Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 27 May 2023 01:50:10 +0200 Subject: [PATCH] fix creating posts on other people's account timelines closes sk22#508 --- .../android/fragments/AccountTimelineFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java index eb7106b47..ade79f8c9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountTimelineFragment.java @@ -85,7 +85,8 @@ public class AccountTimelineFragment extends StatusListFragment{ } protected void onStatusCreated(StatusCreatedEvent ev){ - if(!AccountSessionManager.getInstance().isSelf(accountID, ev.status.account)) + AccountSessionManager asm = AccountSessionManager.getInstance(); + if(!asm.isSelf(accountID, ev.status.account) || !asm.isSelf(accountID, user)) return; if(filter==GetAccountStatuses.Filter.PINNED) return; if(filter==GetAccountStatuses.Filter.DEFAULT){