mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-22 10:44:20 +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
|
||||
Reply(NoteId),
|
||||
|
||||
/// User has clicked the quote repost action
|
||||
Quote(NoteId),
|
||||
/// User has clicked the repost button
|
||||
Repost(NoteId),
|
||||
|
||||
/// User has clicked a hashtag
|
||||
Hashtag(String),
|
||||
|
||||
@@ -119,7 +119,7 @@ fn execute_note_action(
|
||||
.open(ndb, note_cache, txn, pool, &kind)
|
||||
.map(NotesOpenResult::Timeline);
|
||||
}
|
||||
NoteAction::Quote(note_id) => {
|
||||
NoteAction::Repost(note_id) => {
|
||||
if can_post {
|
||||
router_action = Some(RouterAction::route_to(Route::quote(note_id)));
|
||||
} else {
|
||||
|
||||
@@ -867,7 +867,7 @@ fn render_note_actionbar(
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user