better reblog strategy for pleroma #79
This commit is contained in:
parent
bc99ce15da
commit
ba2479915a
|
@ -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) => {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue