Post recommendation widget

This commit is contained in:
2024-12-15 00:52:42 +08:00
parent e920bd954c
commit 8bdaf05223
11 changed files with 343 additions and 45 deletions

View File

@ -0,0 +1,14 @@
//
// Attachment.swift
// Runner
//
// Created by LittleSheep on 2024/12/14.
//
import Foundation
func getAttachmentUrl(for identifier: String) -> String {
let serverBaseUrl = "https://api.sn.solsynth.dev"
return identifier.starts(with: "http") ? identifier : "\(serverBaseUrl)/cgi/uc/attachments/\(identifier)"
}