[backend] Code cleanup
This commit is contained in:
parent
c46573ae37
commit
32b0e1f3c7
4 changed files with 2 additions and 6 deletions
|
@ -108,7 +108,7 @@ public class Note : IEntity {
|
||||||
public List<string> Mentions { get; set; } = [];
|
public List<string> Mentions { get; set; } = [];
|
||||||
|
|
||||||
[Column("mentionedRemoteUsers", TypeName = "jsonb")]
|
[Column("mentionedRemoteUsers", TypeName = "jsonb")]
|
||||||
public List<Note.MentionedUser> MentionedRemoteUsers { get; set; } = [];
|
public List<MentionedUser> MentionedRemoteUsers { get; set; } = [];
|
||||||
|
|
||||||
[Column("emojis", TypeName = "character varying(128)[]")]
|
[Column("emojis", TypeName = "character varying(128)[]")]
|
||||||
public List<string> Emojis { get; set; } = [];
|
public List<string> Emojis { get; set; } = [];
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Text;
|
|
||||||
using Iceshrimp.Backend.Controllers.Attributes;
|
using Iceshrimp.Backend.Controllers.Attributes;
|
||||||
using Iceshrimp.Backend.Controllers.Mastodon.Renderers;
|
using Iceshrimp.Backend.Controllers.Mastodon.Renderers;
|
||||||
using Iceshrimp.Backend.Controllers.Mastodon.Schemas;
|
using Iceshrimp.Backend.Controllers.Mastodon.Schemas;
|
||||||
|
|
|
@ -12,8 +12,6 @@ using Iceshrimp.Backend.Core.Helpers;
|
||||||
using Iceshrimp.Backend.Core.Helpers.LibMfm.Conversion;
|
using Iceshrimp.Backend.Core.Helpers.LibMfm.Conversion;
|
||||||
using Iceshrimp.Backend.Core.Middleware;
|
using Iceshrimp.Backend.Core.Middleware;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using Microsoft.Extensions.Caching.Distributed;
|
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
namespace Iceshrimp.Backend.Core.Services;
|
namespace Iceshrimp.Backend.Core.Services;
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class AuthorizeModel(DatabaseContext db) : PageModel {
|
||||||
|
|
||||||
public List<string> Scopes = [];
|
public List<string> Scopes = [];
|
||||||
public OauthApp App = null!;
|
public OauthApp App = null!;
|
||||||
public OauthToken? Token = null;
|
public OauthToken? Token;
|
||||||
|
|
||||||
public async Task OnGet() {
|
public async Task OnGet() {
|
||||||
if (ResponseType == null || ClientId == null || RedirectUri == null)
|
if (ResponseType == null || ClientId == null || RedirectUri == null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue