Official Landing Page https://www.gnusocial.rocks/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
4.0 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86">
  6. <link rel="shortcut icon" href="/favicon.ico">
  7. <link rel="stylesheet" href="https://www.gnusocial.rocks//assets/css/reset.css">
  8. <link rel="stylesheet" href="https://www.gnusocial.rocks//assets/css/blog.css">
  9. <link rel='stylesheet' type='text/css' href="https://www.gnusocial.rocks//assets/fonts/opensans/opensans.css">
  10. </head><title>Updates: Improve the Attachments system - GNU social V3</title>
  11. </head><body>
  12. <header>
  13. <div class="home-menu menu menu-horizontal menu-fixed">
  14. <a class="menu-heading" href="https://gnusocial.rocks/">
  15. <img src="../assets/img/gnu-social-logo-invert.svg" alt="GNU social">
  16. <b>gnu</b>social
  17. </a>
  18. </div>
  19. <div class="sidebar">
  20. <ul class="menu-list">
  21. <li class="menu-item menu-selected"><a href="index.html" class="menu-link">Blog Index</a></li>
  22. <li class="menu-item"><a href="https://code.gnusocial.rocks/" class="menu-link">Repository</a></li>
  23. <li class="menu-item"><a href="https://coverage.gnusocial.rocks/" class="menu-link">Code Coverage</a></li>
  24. <li class="menu-item"><a href="https://docs.gnusocial.rocks/" class="menu-link">Documentation</a></li>
  25. <li class="menu-item"><a href="https://agile.gnusocial.rocks/" class="menu-link">Wiki</a></li>
  26. <li class="menu-item"><a href="https://kanban.undefinedhackers.net/?controller=BoardViewController&action=readonly&token=d2293e55cabae7cceff9fb496c651328195357d392b9e61a9f229ed6d463" class="menu-link">Roadmap</a></li>
  27. </ul>
  28. </div>
  29. </header>
  30. <div class="content-wrapper">
  31. <div class="content">
  32. </div></div></div>
  33. <div id="template-wrapper"><div class="template-unit">
  34. <!-- entry begin -->
  35. <h3><a class="ablack" href="updates-improve-the-attachments-system.html">
  36. Updates: Improve the Attachments system
  37. </a></h3>
  38. <!-- bashblog_timestamp: #202108051337.42# -->
  39. <div class="subtitle">August 05, 2021 &mdash;
  40. GNU social development team
  41. </div>
  42. <!-- text begin -->
  43. <p>With the milestone <a href="https://www.gnusocial.rocks/v3/milestone-port-media-handling-from-v2.html">Port Media system from
  44. v2</a> we had ported the existing
  45. attachment system. The fact is that this system wasn't good enough.</p>
  46. <p>It's always important to start with the original code as that allows us
  47. to review past decisions and understand all the corner cases previously
  48. considered.</p>
  49. <p>Sadly, what motivated us to re-design the attachment system were the
  50. non-considered corner cases. In particular:</p>
  51. <ul>
  52. <li>Remove <code>title</code> from attachment, as it's part of the relation between attachment and note.</li>
  53. <li>Remove <code>actor</code> from attachment, many actors may publish the same attachment.</li>
  54. <li>Remove <code>is_local</code> from attachment, as it's part of the relation between attachment and note.</li>
  55. <li>Remove <code>remote_url</code> from attachment, different urls can return the same attachment.</li>
  56. <li>Attachment now has a reference counter </li>
  57. <li>Add entity GSActorToAttachment</li>
  58. <li>Add entity GSActorToRemoteURL</li>
  59. <li>Add entity RemoteURL</li>
  60. <li>Add entity RemoteURLToNote</li>
  61. <li>Add entity RemoteURLToAttachment</li>
  62. <li>AttachmentToNote now has a title attribute</li>
  63. </ul>
  64. <p>Key commits:</p>
  65. <ul>
  66. <li><a href="https://code.undefinedhackers.net/GNUsocial/gnu-social/commit/32ad5dbd74ebb369c4b3ed688e1fb78464fabe49">32ad5dbd74 - [ENTITY] Split Attachment in various new entities</a></li>
  67. <li><a href="https://code.undefinedhackers.net/GNUsocial/gnu-social/commit/c381e58d3307e7dd07abeb9cf5b3998e34f5bd48">c381e58d33 - [ENTITY] Refactor RemoteURL entities to Link</a></li>
  68. </ul>
  69. <p>The structural changes and how it compares to v2 is detailed in our
  70. <a href="http://agile.gnusocial.rocks/doku.php?id=attachment">wiki</a>.</p>
  71. <p>Some relevant observations:</p>
  72. <ul>
  73. <li><code>Link</code> is now part of GNU social Data Representation terms. It represents
  74. any remote URL being shared in a note.</li>
  75. <li>There's only one fixed directory for GSFiles.</li>
  76. </ul>
  77. <!-- text end -->
  78. <!-- entry end -->
  79. </div>
  80. </div></div>
  81. </div>
  82. </div></body></html>