mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-28 13:43:00 +00:00
fix(polls): use formal status
otherwise polls wouldn't show up when reblogged
This commit is contained in:
parent
ee79f58262
commit
50318f9595
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue