mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 09:34:19 +01:00
need mutable ndb reference to unsubscribe
Closes: https://github.com/damus-io/notedeck/pull/584
This commit is contained in:
committed by
William Casarin
parent
926a3f80f4
commit
0c29c89909
@@ -407,7 +407,7 @@ pub fn render_nav(
|
||||
RenderNavResponse::new(col, nav_response)
|
||||
}
|
||||
|
||||
fn unsubscribe_timeline(ndb: &Ndb, timeline: &Timeline) {
|
||||
fn unsubscribe_timeline(ndb: &mut Ndb, timeline: &Timeline) {
|
||||
if let Some(sub_id) = timeline.subscription {
|
||||
if let Err(e) = ndb.unsubscribe(sub_id) {
|
||||
error!("unsubscribe error: {}", e);
|
||||
|
||||
Reference in New Issue
Block a user