Improvements for Pleroma/Akkoma (#445)
* Reply Visibility on Plemora * Sort statuses in thread * Get default visibility and language from account if preferences fail * Fix for Mentions tab in notifications on Pleroma * Mark status as sensitive if not already when spoilertext is present * Integrating Pleroma quoting for new posts * move string to strings_sk * use null instead of empty string * change string * fix crash due to null value * update string --------- Co-authored-by: sk <sk22@mailbox.org>
This commit is contained in:
@@ -58,6 +58,8 @@ public class Status extends BaseModel implements DisplayItemsParent, Searchable{
|
||||
public boolean bookmarked;
|
||||
public boolean pinned;
|
||||
|
||||
public Status quote;
|
||||
|
||||
public transient boolean filterRevealed;
|
||||
public transient boolean spoilerRevealed;
|
||||
public transient boolean textExpanded, textExpandable;
|
||||
@@ -67,6 +69,9 @@ public class Status extends BaseModel implements DisplayItemsParent, Searchable{
|
||||
|
||||
@Override
|
||||
public void postprocess() throws ObjectValidationException{
|
||||
if(spoilerText!=null && !spoilerText.isEmpty() && !sensitive)
|
||||
sensitive=true;
|
||||
|
||||
super.postprocess();
|
||||
if(application!=null)
|
||||
application.postprocess();
|
||||
|
||||
Reference in New Issue
Block a user