mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-22 18:54:19 +01:00
refactor: rename NoteAction::Quote -> Repost
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -14,8 +14,8 @@ pub enum NoteAction {
|
|||||||
/// User has clicked the quote reply action
|
/// User has clicked the quote reply action
|
||||||
Reply(NoteId),
|
Reply(NoteId),
|
||||||
|
|
||||||
/// User has clicked the quote repost action
|
/// User has clicked the repost button
|
||||||
Quote(NoteId),
|
Repost(NoteId),
|
||||||
|
|
||||||
/// User has clicked a hashtag
|
/// User has clicked a hashtag
|
||||||
Hashtag(String),
|
Hashtag(String),
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ fn execute_note_action(
|
|||||||
.open(ndb, note_cache, txn, pool, &kind)
|
.open(ndb, note_cache, txn, pool, &kind)
|
||||||
.map(NotesOpenResult::Timeline);
|
.map(NotesOpenResult::Timeline);
|
||||||
}
|
}
|
||||||
NoteAction::Quote(note_id) => {
|
NoteAction::Repost(note_id) => {
|
||||||
if can_post {
|
if can_post {
|
||||||
router_action = Some(RouterAction::route_to(Route::quote(note_id)));
|
router_action = Some(RouterAction::route_to(Route::quote(note_id)));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -867,7 +867,7 @@ fn render_note_actionbar(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if quote_resp.clicked() {
|
if quote_resp.clicked() {
|
||||||
action = Some(NoteAction::Quote(NoteId::new(*note_id)));
|
action = Some(NoteAction::Repost(NoteId::new(*note_id)));
|
||||||
}
|
}
|
||||||
|
|
||||||
action = zap_actionbar_button(ui, note_id, note_pubkey, zapper, i18n).or(action);
|
action = zap_actionbar_button(ui, note_id, note_pubkey, zapper, i18n).or(action);
|
||||||
|
|||||||
Reference in New Issue
Block a user