fix(polls): use formal status

otherwise polls wouldn't show up when reblogged
This commit is contained in:
Evangelos Paterakis 2023-01-15 05:27:41 +02:00
parent ee79f58262
commit 50318f9595
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 4 additions and 5 deletions

View File

@ -326,12 +326,11 @@ public class Tooth.Widgets.Status : ListBoxRow {
// TODO: Votebox should be created dynamically if needed.
// Currently *all* status widgets contain one even if they don't have a poll.
if (status.poll==null){
if (status.formal.poll==null){
poll.hide();
}
else{
poll.status_parent=status;
status.bind_property ("poll", poll, "poll", BindingFlags.SYNC_CREATE);
} else {
poll.status_parent=status.formal;
status.formal.bind_property ("poll", poll, "poll", BindingFlags.SYNC_CREATE);
}
// Attachments