better reblog strategy for pleroma #79

This commit is contained in:
Nicolas Constant 2019-04-13 17:04:24 -04:00
parent bc99ce15da
commit ba2479915a
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 14 additions and 2 deletions

View File

@ -138,8 +138,12 @@ export class ActionBarComponent implements OnInit, OnDestroy {
}
})
.then((boostedStatus: Status) => {
// this.bootedStatePerAccountId[account.id] = boostedStatus.reblogged;
this.bootedStatePerAccountId[account.id] = boostedStatus.reblog !== null; //FIXME: when Pleroma will return the good status
if(boostedStatus.pleroma){
this.bootedStatePerAccountId[account.id] = boostedStatus.reblog !== null; //FIXME: when Pleroma will return the good status
} else {
this.bootedStatePerAccountId[account.id] = boostedStatus.reblogged;
}
this.checkIfBoosted();
})
.catch((err: HttpErrorResponse) => {

View File

@ -165,7 +165,15 @@ export interface Status {
emojis: any[];
language: string;
pinned: boolean;
pleroma: PleromaStatusInfo;
}
export interface PleromaStatusInfo {
conversation_id: number;
local: boolean;
}
export interface Tag {
name: string;
url: string;