Unverified Commit a1c0b54c authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix `fedify inbox`'s Compact Activity tab

parent 9b498afd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11,6 +11,10 @@ To be released.
 -  Fixed `fedify inbox` command that had not been able to parse activities
    even if they are valid JSON-LD.  [[#126]]

 -  Fixed a bug where the *Compact Activity* tab of `fedify inbox` command's
    web interface had shown an expanded JSON-LD object instead of a compacted
    one.


Version 0.14.0
--------------
+4 −1
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@ export async function renderActivity(
  expand: boolean = false,
): Promise<string> {
  const contextLoader = await getContextLoader();
  const jsonLd = await activity.toJsonLd({ contextLoader, expand });
  const jsonLd = await activity.toJsonLd({
    contextLoader,
    format: expand ? "expand" : "compact",
  });
  return JSON.stringify(jsonLd, null, 2);
}