Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
patreon: nicolasconstant
ko_fi: nicolasconstant
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sengi",
"version": "1.9.0",
"version": "1.9.1",
"license": "AGPL-3.0-or-later",
"main": "main-electron.js",
"description": "A multi-account desktop client for Mastodon and Pleroma",
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/stream/status/quote/quote.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
Quoted another post
</div>
</div>
<div class="quote quote__unaccepted" *ngIf="quoteState != 'accepted'">
<div class="quote quote__unaccepted" *ngIf="quoteState != 'accepted' && !error">
{{ getReadableStatus(quoteState) }}
</div>
<div class="quote quote__unaccepted" *ngIf="error">
<div class="quote quote__error" *ngIf="error">
{{ error }}
</div>
7 changes: 7 additions & 0 deletions src/app/components/stream/status/quote/quote.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
padding: 5px 10px;
}

&__error {
color: $quote-error-color;
text-align: center;
font-size: 12px;
padding: 5px 10px;
}

&__open-quote-btn {
position: absolute;
top: 0px;
Expand Down
9 changes: 6 additions & 3 deletions src/app/components/stream/status/quote/quote.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class QuoteComponent implements OnInit {
quoteState: 'pending' | 'accepted' | 'rejected' | 'revoked' | 'deleted' | 'unauthorized' | 'blocked_account' | 'blocked_domain' | 'muted_account';
error: string;

private quote: Quote;
private shallowQuote: ShallowQuote;
quote: Quote;
shallowQuote: ShallowQuote;

@Output() browseAccountEvent = new EventEmitter<string>();
@Output() browseHashtagEvent = new EventEmitter<string>();
Expand Down Expand Up @@ -54,7 +54,9 @@ export class QuoteComponent implements OnInit {

} else { // ShallowQuote
this.shallowQuote = <ShallowQuote>value;
this.mastodonService.getStatus(this.accountInfo, this.shallowQuote.quoted_status_id)

if(this.shallowQuote.quoted_status_id){
this.mastodonService.getStatus(this.accountInfo, this.shallowQuote.quoted_status_id)
.then(status => {
this.displayStatus = status;
this.appRef.tick();
Expand All @@ -64,6 +66,7 @@ export class QuoteComponent implements OnInit {
this.error = "Error retrieving status.";
this.appRef.tick();
});
}
}

this.displayStatusWrapper = new StatusWrapper(this.displayStatus, this.accountInfo, false, false);
Expand Down
3 changes: 2 additions & 1 deletion src/app/themes/implementations/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ export const defaultTheme: Theme = {
"--attachment-icon-shadow-hover": "#4e4e4e",

"--quote-border-color": "#222736",
"--quote-unaccepted-color": "#e46161",
"--quote-unaccepted-color": "#ffffff",
"--quote-error-color": "#e46161",
"--quote-sub-quote-color": "#4e5572",
"--quote-sub-quote-background": "#0c0c10"
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/themes/implementations/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ export const lightTheme: Theme = {
"--attachment-icon-shadow-hover": "#6b7280",

"--quote-border-color": "#9ca7b3",
"--quote-unaccepted-color": "#e00b0b",
"--quote-unaccepted-color": "#080b1b",
"--quote-error-color": "#e00b0b",
"--quote-sub-quote-color": "#ffffff",
"--quote-sub-quote-background": "#bdc1ca"
}
Expand Down
4 changes: 3 additions & 1 deletion src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@
--attachment-icon-shadow-hover: #4e4e4e;

--quote-border-color: orange;
--quote-unaccepted-color: orangered;
--quote-unaccepted-color: #ffffff;
--quote-error-color: orangered;
--quote-sub-quote-color: purple;
--quote-sub-quote-background: aqua;

Expand Down Expand Up @@ -523,5 +524,6 @@ $attachment-icon-shadow-hover: var(--attachment-icon-shadow-hover);

$quote-border-color: var(--quote-border-color);
$quote-unaccepted-color: var(--quote-unaccepted-color);
$quote-error-color: var(--quote-error-color);
$quote-sub-quote-color: var(--quote-sub-quote-color);
$quote-sub-quote-background: var(--quote-sub-quote-background);
Loading