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

View file

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